package com.ruoyi.project.treat.service.impl;

import com.ruoyi.project.treat.domain.TreatPatient;
import com.ruoyi.project.treat.mapper.TreatPatientMapper;
import com.ruoyi.project.treat.service.ITreatPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TreatPatientServiceImpl implements ITreatPatientService {
    @Autowired
    private TreatPatientMapper patientMapper;

    /**
     * 查询患者信息集合
     *
     * @param patient 患者信息
     * @return 患者信息集合
     */
    @Override
    public List<TreatPatient> selectPatientList(TreatPatient patient) {
        return patientMapper.selectPatientList(patient);
    }

    /**
     * 通过身份证号查询患者信息
     *
     * @param patientIdnum 身份证号
     * @return 患者对象信息
     */
    @Override
    public TreatPatient selectPatientByIdnum(String patientIdnum) {
        return patientMapper.selectPatientByIdnum(patientIdnum);
    }
}
